<?php

/**
 * citation actions.
 *
 * @package    Redsea20
 * @subpackage citation
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class citationActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    $str="";
      if ($this->getRequestParameter('search')!=null && $this->getRequestParameter('search')!="")
      {
          $str=$this->getRequestParameter('search');

      }


                  $this->researchs=Doctrine_Query::create()
                  ->from('research r')
		  ->leftJoin('r.Observation o')
		  ->leftJoin('o.Observationdepth od')
                  ->leftJoin('od.Observationdepthdetail odd')
                  ->where("odd.id In ('$str')")
                  ->execute();

  }
}
